#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include "qperson.h"
namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT
private:
    QTimer *my_timer;
    QPerson *boy;
    QPerson *girl;
    int QObjtectTimerId;

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
private slots:
    void on_BoyGrowUpBtn_clicked();

    void on_GrilGrowUpBtn_clicked();

    void on_ObjtectMateBtn_clicked();
    void on_spin_valueChanged(int arg);
    void on_startTimer01Btn_clicked();

    void on_stopTimer01Btn_clicked();

    void on_reStartTimer01_clicked();

    void on_startTimer02Btn_clicked();

    void on_stopTimer02Btn_clicked();

    void on_reStartTimer02_clicked();
    void handleTimeout();
protected:
    void timerEvent(QTimerEvent* event);
private:
    Ui::Widget *ui;
    void on_ageChanged(unsigned age);
    QString getDateTime();


};

#endif // WIDGET_H
